package it.nm.unipicontrol.model;

public class UniPISensor {

	public static final Object PROT_FALSE = "false";
	public static final String PROT_RESULT = "result";
	public static final Object PROT_TRUE = "true";
	public static final String RELAY = null;
	public static final String RELAY_1 = "/rest/relay/1";
	public static final String RELAY_2 = "/rest/relay/2";
	public static final String RELAY_3 = "/rest/relay/3";
	public static final String RELAY_4 = "/rest/relay/4";
	
	public static final String RELAY_5 = "/rest/relay/5";
	public static final String RELAY_6 = "/rest/relay/6";
	public static final String RELAY_7 = "/rest/relay/7";
	
	public static final String RELAY_8 = "/rest/relay/8";
	public static final String S_RELAY_OFF = "0";
	//status
	public static final String S_RELAY_ON = "1";
	
	
	
	public static boolean isRelay(String command) {
		
		return 
				(command.equals(RELAY_1) || 
				command.equals(RELAY_2) ||
				command.equals(RELAY_3) ||
				command.equals(RELAY_4) ||
				command.equals(RELAY_5) ||
				command.equals(RELAY_6) ||
				command.equals(RELAY_7) ||
				command.equals(RELAY_8));

	}	
	
	

}
